<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<style type="text/css">
.td_left {
	text-align: right;
}
.td_right {
	text-align: left;
}
</style>
</head>
<body>
	<div style="margin-left: 20px;margin-top: 30px;" >
		<form action="add" method="post">
			<table>
				<tr>
					<td class="td_left">用户名:</td>
					<td class="td_right"><input type="text" name="cname" maxlength="12" /></td>
				</tr>
				<tr>
					<td class="td_left">工资:</td>
					<td class="td_right"><input type="text" name="salary"/></td>
				</tr>
				<tr>
					<td class="td_left">生日:</td>
					<td class="td_right"><input type="date" name="birthDate"/></td>
				</tr>
				<tr>
					<td class="td_left">性别:</td>
					<td class="td_right">
						<input type="radio" name="sex" checked="checked" value="true"/>男
						<input type="radio" name="sex" value="false"/>女
					</td>
				</tr>
				<tr>
					<td class="td_left">爱好:</td>
					<td class="td_right">
						<input type="checkbox" value="2" name="hobby"/>football
						<input type="checkbox" value="4" name="hobby"/>travel
						<input type="checkbox" value="3" name="hobby"/>film
						<input type="checkbox" value="5" name="hobby"/>chat
						<input type="checkbox" value="6" name="hobby"/>running
						<input type="checkbox" value="7" name="hobby"/>swimming
					</td>
				</tr>
				<tr>
					<td></td>
					<td class="td_right" ><input type="submit" value="提交"/></td>
				</tr>
			</table>
		</form>
		<p><font style="color: red;">${error }</font></p>
	</div>
</body>
</html>